package com.ruoyi.estate.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 楼栋管理对象 business_floor
 * 
 * @author 博雅
 * @date 2023-12-19
 */
public class BusinessFloor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 楼ID */
    private Long floorId;

    /** 楼编号 */
    @Excel(name = "楼编号")
    private String floorNum;

    /** 小区楼名称 */
    @Excel(name = "小区楼名称")
    private String name;

    /** 建筑面积 */
    @Excel(name = "建筑面积")
    private BigDecimal floorArea;

    private Integer order;//排序号
    private String remark;//备注


    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /** 楼栋下的单元信息 */
    private List<BuildingUnit> children = new ArrayList<BuildingUnit>();

    public void setFloorId(Long floorId) 
    {
        this.floorId = floorId;
    }

    public Long getFloorId() 
    {
        return floorId;
    }
    public void setFloorNum(String floorNum) 
    {
        this.floorNum = floorNum;
    }

    public String getFloorNum() 
    {
        return floorNum;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setFloorArea(BigDecimal floorArea) 
    {
        this.floorArea = floorArea;
    }

    public BigDecimal getFloorArea() 
    {
        return floorArea;
    }

    public List<BuildingUnit> getChildren() {
        return children;
    }

    public void setChildren(List<BuildingUnit> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("floorId", getFloorId())
            .append("floorNum", getFloorNum())
            .append("name", getName())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("floorArea", getFloorArea())
            .toString();
    }
}
